package com.hdcircles.autoform.presenter.contract;

import android.widget.Button;

import com.hdcircles.autoform.base.BasePresenter;
import com.hdcircles.autoform.base.BaseView;
import com.hdcircles.autoform.model.bean.FormBean;
import com.hdcircles.autoform.model.bean.QuestionBean;

import java.util.HashMap;
import java.util.List;
import java.util.TreeMap;

/**
 * Created by hdcircles on 2016/9/28.
 */

public interface AddSurveyContract {

    interface View extends BaseView{

        void changeButtonStatus(Button button);

        void setCurrentQuestion(QuestionBean question);

        void createMapSuccess(String tableId);

        void saveFormSuccess(String msg);
    }

    interface Presenter extends BasePresenter<View>{

        void  getQuestion(TreeMap<String,QuestionBean> question, List<Button> btNumberList, android.widget.Button button);

        void saveFormData(FormBean formBean);

        void createMap(String name);
    }
}
